<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 [#include "/webpage/common/common_css.html"/] 
<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="15" height="30"><img src="${cache}/images/tab_03.gif" width="15" height="30" /></td>
        <td width="1101" background="${cache}/images/tab_05.gif">
        <img src="${cache}/images/311.gif" width="16" height="16" /> 
        <span class="STYLE4">${title}</span></td>
        <td width="281" background="${cache}/images/tab_05.gif" style="text-align:right;cursor:pointer" 
             onclick="location.href='${base}/admin.do';" 
         >
              <img src="${cache}/images/002.gif" width="14" height="14" />
              <label style="font-size:12px;">返回</label>
        </td>
        <td width="14"><img src="${cache}/images/tab_07.gif" width="14" height="30" /></td>
      </tr>
    </table>
  </td>
  </tr>
  <tr>
    <td>
     <table width="100%" border="0" cellspacing="0" cellpadding="0" >
       <tr style="height:20px;">
        <td width="9" background="${cache}/images/tab_12.gif">&nbsp;</td>
        <td bgcolor="#f3ffe3" style="width:20%"></td>
        <td bgcolor="#f3ffe3" ></td>
        <td width="9" background="${cache}/images/tab_16.gif">&nbsp;</td>
      </tr>
      <tr>
        <td width="9" background="${cache}/images/tab_12.gif">&nbsp;</td>
         <td bgcolor="#f3ffe3" style="width:10%"></td>
        <td bgcolor="#f3ffe3">  
                <form id="managerForm" method="post"  action="${base}${action}"> 
                <input type="hidden" name="admin*id"  value="[#if user.id?exists&&user.id>0]${user.id!}[/#if]" /> 
                  <table style="width:100%;font-size:12px;" cellspacing="5px" cellpadding="5px">
                       <tr>
                          <td style="text-align:right">登录名:</td>
                          <td style="text-align:left">
                            <input name="admin*userLoginName" id="userLoginName"  value="${user.userLoginName!}"
                            [#if user.id>0]readonly[/#if]
                            />
                          </td>
                       </tr>
                       <tr>
                          <td style="text-align:right">昵称:</td>
                          <td style="text-align:left">
                              <input name="admin*userName" id="userName"  value="${user.userName!}"/>
                          </td>
                       </tr> 
                       [#if  user.id==0] 
                       <tr>
                          <td style="text-align:right">密码:</td>
                          <td style="text-align:left">
                              <input name="admin*userPassword" id="userPassword" type="password" value="${user.userPassword!}"/>
                          </td>
                       </tr>
                       <tr>
                          <td style="text-align:right">密码确认:</td>
                          <td style="text-align:left">
                              <input name="confirmUserPassword" id="confirmUserPassword" type="password" value="${user.userPassword!}"/>
                          </td>
                       </tr>
                       [/#if]
                       <tr>
                          <td style="text-align:right">邮件:</td>
                          <td style="text-align:left">
                              <input name="admin*userEmail" id="userName"  value="${user.userEmail!}"/>
                          </td>
                       </tr>
                       <tr>
                          <td style="text-align:right">性别:</td>
                          <td style="text-align:left">
                              <select name="admin*userSex" style="width:100px">
                                 <option value="男" [#if user.userSex?exists&&user.userSex=='男']checked[/#if] >男</option>
                                 <option value="女" [#if user.userSex?exists&&user.userSex=='女']checked[/#if] >女</option>
                              </select>
                          </td>
                       </tr>
                       <tr>
                          <td style="text-align:right">状态:</td>
                          <td style="text-align:left">
                               <select name="admin*userStatus" style="width:100px;font-size:12px"> 
                                    [#list USER_STATUS as ty]
                                    <option value="${ty.value}" 
                                     [#if user.userStatus?exists&&user.userStatus==ty.value]checked[/#if]
                                    >${ty.name}</option> 
                                    [/#list]
                                </select> 
                          </td>
                       </tr> 
                        <tr>
                          <td style="text-align:right">分配的角色:</td>
                          <td style="text-align:left">
                                   [#list userRoleList as role]
                                          <input type="checkbox" name="role" value="${role.id!}"
                                            [#if role.checked=="Y"]checked[/#if]
                                           >${role.roleName!}<br/>
                                   [/#list]
                          </td>
                       </tr>  
                        <tr style="height:15px;">
                          <td colspan="2">
                          </td>
                       </tr> 
                        <tr>
                          <td style="width:15%"></td>
                          <td>
                              <input type="button" value="保存" onclick="saveManager()" />
                                &nbsp;&nbsp;
                               <input type="reset" value="重置"/>
                          </td>
                       </tr> 
                    </table>
               </form> 
        </td>
        <td width="9" background="${cache}/images/tab_16.gif">&nbsp;</td>
      </tr>
    </table>
    </td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr height="22">
        <td width="15" >
        <img src="${cache}/images/tab_20.gif"   /></td>
        <td background="${cache}/images/tab_21.gif" style="text-align:center"> 
        </td>
        <td width="14"><img src="${cache}/images/tab_22.gif" width="14"  /></td>
      </tr> 
</table>
[#include "/webpage/common/common_js.html"/]
 <script type="text/javascript" src="${cache}/js/manager/manager.js"></script>
</body>
</html>
